/*-
  use bamp::ApiParser;
  use bamp::CppApiGen;

  my $api = bamp::ApiParser->new("bamp.api", CLASSNAME);
  my $cpp = bamp::CppApiGen->new($api);
  die "API parsing failed" if ${$api}{errors};

  my $class      = CLASSNAME; $class =~ s/::/_/g;
  my $incl_guard = "__".uc($class)."_MSG_WRAPPER_HPP__";
*/
/*
 * /*= $cpp->header() */
 */

#ifndef /*$incl_guard*/
#define /*$incl_guard*/

/*
 * Declare all messaging interface callbacks.
 */

#define /*+uc($class)*/_MSG_DECLARE_ALL \
    /*- for my $m ($api->methods()) { */
    void /*$cpp->meth_name($m)*/(MessagePtr msg); \
    /*- } */


/*
 * Connect all messaging interface callbacks to a messaging loop.
 */

#define /*+uc($class)*/_MSG_CONNECT_ALL(__loop, __class, __object)      \
    /*- for my $m ($api->methods()) { */
    __loop->connect("bamp::/*$cpp->meth_name($m)*/", \
                    &__class::/*$cpp->meth_name($m)*/, &(__object));    \
    /*- } */

#endif // /*$incl_guard*/
